package com.xh3140.xrouter.demo;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.xh3140.xrouter.Router;
import com.xh3140.xrouter.RouterManager;

@Router("app/MainActivity")
public class MainActivity extends AppCompatActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    findViewById(R.id.text_view).setOnClickListener(view ->
            startActivity(new Intent(MainActivity.this, RouterManager.routing("app/TestActivity"))));
  }
}